Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PMM-12912 Add indicator for updates #723

Merged

Conversation

matejkubinec
Copy link
Collaborator

@matejkubinec matejkubinec commented Mar 18, 2024

What this PR does / why we need it:

Adds an indicator to the Settings and Updates menu items when an update is available.

Which issue(s) this PR fixes:

PMM-12912

FB: Percona-Lab/pmm-submodules#3602

Screenshots:

image


export const UpdatesService = {
getCurrentVersion: (body: CheckUpdatesBody = { force: false }) =>
api.post<CheckUpdatesResponse, CheckUpdatesBody>('/v1/Updates/Check', body, true),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will impact the "API breaking changes" , https://github.com/percona/pmm/blob/PMM-12913-migrate-api-endpoints-to-restful/api/MIGRATION_TO_V3.md?plain=1

POST /v1/updates/Check was replaced by GET /v1/server/updates
Depending on what branch will be merged first, we need to make changes. To keep that in mind.

@matejkubinec matejkubinec merged commit 4eefa25 into PMM-11231-pmm-updates-ui Jul 12, 2024
3 of 4 checks passed
@matejkubinec matejkubinec deleted the PMM-12912-updates-menu-indicator branch July 12, 2024 07:32
matejkubinec added a commit that referenced this pull request Jul 23, 2024
* PMM-12912 Add indicator for updates

* PMM-12912 Update MegaMenuItem

* PMM-12912 Update pmm updates url

* PMM-12912 Replace badge with dot

* PMM-12912 Show dot based on the update availability

* PMM-12912 Adjust dot

* PMM-12912 update betterrer

* PMM-12912 Fix dot styling

* PMM-12912 Reorder comments

* PMM-12912 Update api response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants